<script setup>
import { ref, onMounted } from 'vue'

// 响应式数据
const count = ref(0)

function increment() {
  count.value++
}

onMounted(() => {
  console.log("挂载完毕")
})


</script>

<template>
  <button @click="increment">count: {{ count }}</button>
</template>

<style scoped>
</style>
